




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/06/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfprojectsurvey.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.yfprojectsurvey.entity.YfProjectSurvey;
import com.application.yfprojectsurvey.struts.form.YfProjectSurveyForm;
import com.application.yfprojectsurvey.dao.YfProjectSurveyDAO;
 /**
 * 
 * Description:YfProjectSurveyService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 02/06/2012 
 * 
 */
public class YfProjectSurveyService extends BaseService
{
	private YfProjectSurveyDAO yfProjectSurveyDAO;

	public YfProjectSurveyDAO getYfProjectSurveyDAO() {
		return this.yfProjectSurveyDAO;
	}

	public void setYfProjectSurveyDAO(YfProjectSurveyDAO yfProjectSurveyDAO) {
		this.yfProjectSurveyDAO = yfProjectSurveyDAO;
	}
        

        public YfProjectSurvey getYfProjectSurvey(YfProjectSurvey yfProjectSurvey) {
		return (YfProjectSurvey) this.getBaseDao().queryByPk(yfProjectSurvey, yfProjectSurvey.getId());
	}
	
	public Integer getAllCountYfProjectSurvey(YfProjectSurveyForm yfProjectSurveyForm){
		return this.yfProjectSurveyDAO.getAllCountYfProjectSurvey(yfProjectSurveyForm);
	}
	
	public List<YfProjectSurvey> searchYfProjectSurvey(YfProjectSurveyForm yfProjectSurveyForm, PageBean pageBean) throws Exception {
		List<YfProjectSurvey> yfProjectSurveyList = (List) this.yfProjectSurveyDAO.searchYfProjectSurvey(yfProjectSurveyForm, pageBean);
		return yfProjectSurveyList;
	}
        
	public List<YfProjectSurvey> searchYfProjectSurvey(YfProjectSurveyForm yfProjectSurveyForm) throws Exception {
		List<YfProjectSurvey> yfProjectSurveyList = (List) this.yfProjectSurveyDAO.searchYfProjectSurvey(yfProjectSurveyForm);
		return yfProjectSurveyList;
	}
	
	
        public void deleteYfProjectSurveys(YfProjectSurveyForm yfProjectSurveyForm){
	   this.yfProjectSurveyDAO.deleteYfProjectSurveys(yfProjectSurveyForm);	 
	}
}
